<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 3.0 License

Name       : Sandstorm
Description: A two-column, fixed-width design with brown color scheme.
Version    : 1.0
Released   : 20120205
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <title>Sandstorm by FCT</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link href="http://fonts.googleapis.com/css?family=Oswald" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
    <?php  Yii::app()->bootstrap->register(); ?>
</head>
<body>

<div id="wrapper">
    <div id="header">
		<div id="logo"><h1><?php echo CHtml::encode(Yii::app()->name); ?></h1></div>
	</div><!-- header -->

    <div id="menu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
                array('label'=>'На главную', 'url'=>array('/site/index')),
                array('label'=>'О нас', 'url'=>array('/site/page', 'view'=>'about')),
                array('label'=>'Обратная связь', 'url'=>array('/site/contact')),
                array('label'=>'Вход','url'=>Yii::app()->createUrl('user/auth/login'),'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Выход ('.Yii::app()->user->name.')','url'=>Yii::app()->createUrl('user/auth/logout'),'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Регистрация','url'=>'#','linkOptions'=>array('onclick'=>'$("#register-form").dialog("open"); return false;'),'visible'=>Yii::app()->user->isGuest),
			),
		)); ?>
	</div><!-- mainmenu -->

	<?php /* if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif; */ ?>
    <?php $this->renderPartial('application.views.site.popUpPages',array()); ?>
	<?php echo $content; ?>

    <div id="footer">
        Copyright (c) 2012 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/" rel="nofollow">FreeCSSTemplates.org</a>.
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
